home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / lib / mntlib44.zoo / mntlib / puts.c < prev    next >
C/C++ Source or Header  |  1994-03-01  |  294b  |  19 lines

  1. /* from Dale Schumacher's dLibs */
  2.  
  3. #include <stdio.h>
  4. #include <stddef.h>
  5. #include <assert.h>
  6.  
  7. int
  8. puts(data)
  9.   const char *data;
  10. {
  11.   register int n;
  12.  
  13.   assert((data != NULL));
  14.   if (((n = fputs(data, stdout)) == EOF)
  15.       || (fputc('\n', stdout) == EOF))
  16.     return (EOF);
  17.   return (++n);
  18. }
  19.